package com.xinke.juc.sguigu.util;

import java.util.concurrent.TimeUnit;

/**
 * @Author：xinke
 * @Date：2025/10/9
 * @Desc:
 */
public class Sleep {
    public static void seconds(long timeout) {
        try {
            TimeUnit.SECONDS.sleep(timeout);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
    public static void milliseconds(long timeout) {
        try {
            TimeUnit.MILLISECONDS.sleep(timeout);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
